#include <stdio.h>

int main(int argc, char const *argv[])
{
    int xjNum;     //鸡的数量
    int rabbitNum; //兔子的数量
    for (xjNum = 0; xjNum <= 35; xjNum++)
    { //鸡的数量最多35只
        for (rabbitNum = 0; rabbitNum <= 24; rabbitNum++)
        { //兔子数量最多24只
            if (xjNum + rabbitNum == 35 && xjNum * 2 + rabbitNum * 4 == 94)
            { //满足条件时
                printf("鸡的数量是：%d,兔子的数量是：%d", xjNum, rabbitNum);
            }
        }
    }
    return 0;
}
